package com.ly.heart.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 金蝶-不良品处理单对象 erp_king_bad_handle_info
 *
 * @author cxl
 * @date 2024-08-11
 */
@TableName ("erp_king_bad_handle_info")
@ApiModel (value = "金蝶-不良品处理单", description = "金蝶-不良品处理单")
@Data
@Accessors(chain = true)
public class KingBadHandleEntity {

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 单据编号 */
    @ApiModelProperty ("单据编号")
    @TableField ("doc_code")
    @Excel (name = "单据编号")
    private String docCode;

    /** 单据类型（单据类型接口） */
    @TableField ("doc_type")
    @ApiModelProperty ("单据类型")
    @Excel (name = "单据类型")
    private String docType;

    /** 业务类型（与单据类型相对应） */
    @TableField ("doc_business_type")
    @ApiModelProperty ("业务类型")
    @Excel (name = "业务类型")
    private String docBusinessType;

    /** 单据日期 */
    @ApiModelProperty ("单据日期")
    @TableField ("doc_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date docTime;

    /** 质检组织 */
    @ApiModelProperty ("质检组织")
    @TableField ("check_org")
    @Excel (name = "质检组织")
    private String checkOrg;

    /** 来源组织 */
    @ApiModelProperty ("来源组织")
    @TableField ("source_org")
    @Excel (name = "来源组织")
    private String sourceOrg;

    /** 检验部门 */
    @ApiModelProperty ("检验部门")
    @TableField ("check_dept")
    @Excel (name = "检验部门")
    private String checkDept;

    /** 单据状态 */
    @ApiModelProperty ("单据状态")
    @TableField ("doc_status")
    @Excel (name = "单据状态")
    private String docStatus;

    /** 质检组 */
    @ApiModelProperty ("质检组")
    @TableField ("check_group")
    @Excel (name = "质检组")
    private String checkGroup;

    /** 质检员 */
    @ApiModelProperty ("质检员")
    @TableField ("check_by")
    @Excel (name = "质检员")
    private String checkBy;

    /** 创建人 */
    @ApiModelProperty ("创建人")
    @TableField ("create_name")
    @Excel (name = "创建人")
    private String createName;

    /** 修改人 */
    @ApiModelProperty ("修改人")
    @TableField ("update_name")
    @Excel (name = "修改人")
    private String updateName;

    /** 审核人 */
    @ApiModelProperty ("审核人")
    @TableField ("examine_name")
    @Excel (name = "审核人")
    private String examineName;

    /** 审核日期 */
    @ApiModelProperty ("审核日期")
    @TableField ("examine_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "审核日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date examineTime;

    /** 作废状态 */
    @ApiModelProperty ("作废状态")
    @TableField ("invalid_state")
    @Excel (name = "作废状态")
    private String invalidState;

    /** 作废人 */
    @ApiModelProperty ("作废人")
    @TableField ("invalid_name")
    @Excel (name = "作废人")
    private String invalidName;

    /** 作废日期 */
    @ApiModelProperty ("作废日期")
    @TableField ("invalid_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "作废日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date invalidTime;

    /** 录入人 */
    @ApiModelProperty ("录入人")
    @TableField ("user_id")
    @Excel (name = "录入人")
    private String userId;

    /** 逻辑删除 */
    @ApiModelProperty ("逻辑删除")
    @TableField ("is_used")
    @Excel (name = "逻辑删除")
    @TableLogic
    private Integer isUsed;

    /** 是否发送金蝶；1：是；2：否 */
    @ApiModelProperty ("是否发送金蝶；1：是；2：否")
    @TableField ("is_send")
    @Excel (name = "是否发送金蝶；1：是；2：否")
    private Integer isSend;

    /** 流程实例id */
    @ApiModelProperty ("流程实例id")
    @TableField ("instance_id")
    @Excel (name = "流程实例id")
    private String instanceId;

    /** 流程状态 */
    @ApiModelProperty ("流程状态")
    @TableField ("state")
    @Excel (name = "流程状态")
    private String state;

    /** 备注 */
    @ApiModelProperty ("备注")
    @TableField ("remark")
    @Excel (name = "备注")
    private String remark;

    /** 创建时间 */
    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /** 修改时间 */
    @ApiModelProperty ("修改时间")
    @TableField ("update_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;

    @ApiModelProperty("业务type")
    @TableField (exist = false)
    private String businessType;

    @ApiModelProperty("流程模型id")
    @TableField (exist = false)
    private String modelId;

    @ApiModelProperty("物料分录信息")
    @TableField(exist = false)
    private List<KingBadHandleMaterialEntity> materialLists;

}
